import request from '@/util/request'

export function getBlacklistList (query) {
  return request({
    url: '/blacklist/list',
    method: 'get',
    params: query
  })
}

export function addBlacklist (data) {
  return request({
    url: '/blacklist',
    method: 'post',
    data: data
  })
}


export function updateBlacklist (id, data) {
  return request({
    url: `/blacklist/${id}`,
    method: 'put',
    data: data
  })
}

export function deleteBlacklist (id) {
  return request({
    url: `/blacklist/${id}`,
    method: 'delete',
  })
}
